use mini_dino::framework::*;

fn main() {
    //
    let mut game = GameApp::build(
        true,
        true,
        true,
    );

    game.initialize();

    let keyboard_state = unsafe {
        std::alloc::alloc_zeroed(std::alloc::Layout::array::<u8>(108).unwrap())
    };
    unsafe {
        (*keyboard_state.add(25)) = 1;
    }
    game.step(keyboard_state, 0.0167);
    unsafe {
        (*keyboard_state.add(25)) = 0;
    }
    loop {
        game.step(keyboard_state, 0.0167);

        // sleep(Duration::from_secs_f32(0.0167));
    }
    // game.run();
}

// fn main() {

// }